<?php

namespace App\Models;


use Illuminate\Database\Eloquent\Model;

class UserCar extends Model
{
	
    protected $table = 'user_cars';

    protected $fillable = [
        'user_id',
        'order_id',
        'brand_id',
        'car_id',
        'car_number',
        'car_engine',
        'car_frame',
        'car_license'
    ];

    public function car()
    {
        return $this->belongsTo(Car::class);
    }

    public function user()
    {
        return $this->belongsTo(User::class);
    }

    public function brand()
    {
        return $this->belongsTo(Brand::class);
    }
}
